package ltg.ibutton.core.wrappers;
/* This class is intended to implement the Factory Method design pattern so that the suitable 
 * concrete wrapper class is used every time. The choice is to be made depending on which wrapper
 * is loaded into the system. RTTI must be used.
 * */
public class FactoryWrapper {
	private FactoryWrapper() {};
	
	public static Wrapper getWrapper() {
		if(System.getProperty("os.name").indexOf("Windows") != -1)
			return OneWireWinWrapper.getInstance();
		else
			return OneWireWrapper.getInstance();
			//return TestWrapper.getInstance();
	}
}
